#!/bin/sh
#========================================================================
# Author: YSLin
# Email: 
# File Name: rund.sh
# Description: 
#    1. ./buildx86dalvikvm.sh
#    2. ./rund.sh -cp hw.jar hw
#   
# Edit History: 
#   2010-11-29    File created.
#========================================================================

#為了dalvikvm找得到libxxx.so
sudo ldconfig /home/zod/mydroid_froyo32bitx86/out/host/linux-x86/pr/sim/system/lib 

# base directory, at top of source tree; replace with absolute path
base=/home/zod/mydroid_froyo32bitx86

# configure root dir of interesting stuff
root=$base/out/host/linux-x86/pr/sim/system
export ANDROID_ROOT=$root

# configure bootclasspath
bootpath=$root/framework
export BOOTCLASSPATH=$bootpath/core.jar:$bootpath/ext.jar:$bootpath/framework.jar:$bootpath/android.policy.jar:$bootpath/services.jar

# this is where we create the dalvik-cache directory; make sure it exists
export ANDROID_DATA=/home/zod/tmp/dalvik_$USER
mkdir -p $ANDROID_DATA/dalvik-cache
exec ./dalvikvm $@ 
